import axios from "./index";

export function getSliders(){
    return axios.get("/slider/list");
}
export function getLessons(
    currentCategory: string = "all",
    offset: number,
    limit: number,
){
    return axios.get(`/lesson/list?category=${currentCategory}&offset=${offset}&limit=${limit}`);
}

export function getLesson<T>(id: string){
    return axios.get<T, T>(`/lesson/${id}`);
}